import React, { useContext } from 'react'
import Item from "./Item"
//先把提供值的这个context对象引入
import { App1Context } from '../../App'

export default function List() {
  //可以使用useContext Hook方法接受某个对象提供的数据
  // console.log(useContext(App1Context));
  const arr = useContext(App1Context);
  return (
    <div>
      arr:{arr}

      <Item />
    </div>
  )
}
